<!DOCTYPE html>
<html lang="es">
  <head>

    <title>Galería - Salesianas MR</title>
	<?php require('common/top.php');?>

      <!-- Main hero unit for a primary marketing message or call to action -->
      <div class="row" >

      
      	<div class="span3" >
      		<div class="block-header" align="justify"><h5>Álbumes</h5></div>
        	<div class="well">
            	<?php foreach($albumes as $album){ ?>
					<p><i class="icon-play"></i><strong><small>Temporada <?php echo $album["temporada"]?> </small></strong></p>
                    <?php 
					$al=dameAlbumes($album["anno"]);
					foreach ($al as $a){
					
					$nombre=$a["nombre"];
					$idalbum=$a["id_album"]?>
                    	
						<p style="margin-left:20px"><a href="javascript:void(0)" onclick="llama(<?php echo $idalbum?>)"  name="album" id="album"><i class="icon-camera"></i> <?php echo $nombre?> </a></p>
				<?php }}?>
            	
           
              
                </div>
      	</div>
     	<div class="span9">
        	<div class="well" style="margin-top:10px !important" id="muestra">
    			<p style="text-align:center;  font-size:25px;">Galería</p>
                <p  style="text-align:center">Selecciona un álbum</p>
         	</div>
      	</div>

	   </div>
       
       <script type="text/javascript">  

	function llama(idalbum){
		$("#muestra").load("album",{idalbum:idalbum});
	}

</script>  
      
       



<?php include('common/bottom.php');?>
